package cc.bookcloud.tool.ocr.common.parsetext.test;

import java.util.Arrays;

/**
 * @Desc: @todo
 * @Version: 2.0
 * @Author: John Goo
 * @Date: 2024/12/04 14:25
 **/
public class TicketItem {
    private double[][] coordinates;
    private String text;
    private double confidence;

    public TicketItem(double[][] coordinates, String text, double confidence) {
        this.coordinates = coordinates;
        this.text = text;
        this.confidence = confidence;
    }

    public double[][] getCoordinates() {
        return coordinates;
    }

    public String getText() {
        return text;
    }

    public double getConfidence() {
        return confidence;
    }

    @Override
    public String toString() {
        return "TicketItem{" +
                "coordinates=" + Arrays.deepToString(coordinates) +
                ", text='" + text + '\'' +
                ", confidence=" + confidence +
                '}';
    }
}

